<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']}</label>
    <input type="hidden" name="{$value['name']}" value="0">
    <div class="layui-input-block" style="width: 30%">
        <input type="checkbox" class="{$value['class']}" style="{$value['style']}" data-action="{$value['action']}" name="{$value['name']}"  lay-text="{$value['option'][0]|default='开启'}|{$value['option'][1]|default='关闭'}" lay-skin="switch" {if $value['value']}checked{/if}>
        <br>
        <span class="red" style="font-size: 10px">{$value['describe']}</span>
    </div>
</div>